package com.matrix.gallery.ui.wallpaper.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class BannerPagerAdapter(fragmentActivity: FragmentManager, fragments: MutableList<Fragment>) :
    FragmentPagerAdapter(fragmentActivity) {

    private var mfragment: List<Fragment> = fragments;

    override fun getCount(): Int {
        return mfragment.size
    }

    override fun getItem(position: Int): Fragment {
        return mfragment[position]
    }

}